Create settings for a class that manages a cache of SharePoint files.
Parent Type: SharePointCacheSettings
Namespace: Microsoft.LearningComponents.SharePoint
Assembly: Microsoft.LearningComponents.SharePoint.dll
| C# |
|
public SharePointCacheSettings ( ) |
cachePath
The path to the folder containing the cached files.
expirationTime
The minimum amount of time that packages are stored in the cache. After this time has passed, the package will be removed from the cache if it has not been accessed. If not provided, files will never be removed from the cache.
impersonationBehavior
The identity used to access the cache.
cacheInvalidPackageAsFile
If true, a package that is invalid will be cached as a file. While it cannot be read as a package in this case, setting this to true may improve performance.
This class does not verify that the cachePath directory exists, however, when the settings are passed to SharePointPackageReader or SharePointPackageStore, those classes will require the directory to exist.